package com.vancouver.knows.business.bean;

import java.util.List;

public class AccessInfo {

	private Token token;
	private List<ServiceInfo> serviceCatalog;

	public Token getToken() {
		return token;
	}

	public void setToken(Token token) {
		this.token = token;
	}

	public List<ServiceInfo> getServiceCatalog() {
		return serviceCatalog;
	}

	public void setServiceCatalog(List<ServiceInfo> serviceCatalog) {
		this.serviceCatalog = serviceCatalog;
	}

	public static class ServiceInfo {
		private String name;

		private List<EndpointsInfo> endpoints;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public List<EndpointsInfo> getEndpoints() {
			return endpoints;
		}

		public void setEndpoints(List<EndpointsInfo> endpoints) {
			this.endpoints = endpoints;
		}

	}

	public static class Token {
		private String id;

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		@Override
		public String toString() {
			return "Token [id=" + id + "]";
		}

	}

	@Override
	public String toString() {
		return "AccessInfo [token=" + token + ", serviceCatalog=" + serviceCatalog + "]";
	}

}
